home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
cstdio.arc
/
SRC.ARC
/
POKE.A
< prev
next >
Wrap
Text File
|
1985-01-16
|
395b
|
24 lines
; _poke.a - write byte to memory.
; (C) Copyright 1985 Gregory R. Mansfield - All Rights Reserved.
; G. R. Mansfield. 85/01/16.
; Ver 1.0-5116.
cseg
public _poke_
; _poke(data, offset, segment)
; BYTE data, *offset;
; SEGBASE segment;
_poke_: mov bx,sp
mov al,[bx+2] ; data
mov si,[bx+4] ; offset
mov dx,[bx+6] ; segment
push ds
mov ds,dx
stosb
pop ds
ret